package com.aaa.entity.repair;

import com.aaa.entity.*;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class BackCarRepair {
    private String repairid;
    private String telephone;
    private String carcode;
    private String reason;
    private String employeeid;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    private Date createtime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    private Date updatetime;
    private int schoolId;
    private String expenseorder;
    private int isdelete;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    private Date startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    private Date endTime;
    //关联其他实体类
    private AppUserinfo userinfo;
    private BackCarMessage backCarMessage;
    private BackEmployeeinfo backEmployeeinfo;
    private BackExpenseorder backExpenseorder;
    private AppStore appStore;
    private AppExpensetype appExpensetype;

    public BackCarRepair() {
    }

    public BackCarRepair(String repairid, String telephone, String carcode, String reason, String employeeid, Date createtime, Date updatetime, int school_id, String expenseorder, int isdelete, Date startTime, Date endTime, AppUserinfo userinfo, BackCarMessage backCarMessage, BackEmployeeinfo backEmployeeinfo, BackExpenseorder backExpenseorder, AppStore appStore, AppExpensetype appExpensetype) {
        this.repairid = repairid;
        this.telephone = telephone;
        this.carcode = carcode;
        this.reason = reason;
        this.employeeid = employeeid;
        this.createtime = createtime;
        this.updatetime = updatetime;
        this.schoolId = school_id;
        this.expenseorder = expenseorder;
        this.isdelete = isdelete;
        this.startTime = startTime;
        this.endTime = endTime;
        this.userinfo = userinfo;
        this.backCarMessage = backCarMessage;
        this.backEmployeeinfo = backEmployeeinfo;
        this.backExpenseorder = backExpenseorder;
        this.appStore = appStore;
        this.appExpensetype = appExpensetype;
    }

    public String getRepairid() {
        return repairid;
    }

    public void setRepairid(String repairid) {
        this.repairid = repairid;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getCarcode() {
        return carcode;
    }

    public void setCarcode(String carcode) {
        this.carcode = carcode;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getEmployeeid() {
        return employeeid;
    }

    public void setEmployeeid(String employeeid) {
        this.employeeid = employeeid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public int getSchool_id() {
        return schoolId;
    }

    public void setSchool_id(int school_id) {
        this.schoolId = school_id;
    }

    public String getExpenseorder() {
        return expenseorder;
    }

    public void setExpenseorder(String expenseorder) {
        this.expenseorder = expenseorder;
    }

    public int getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(int isdelete) {
        this.isdelete = isdelete;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public AppUserinfo getUserinfo() {
        return userinfo;
    }

    public void setUserinfo(AppUserinfo userinfo) {
        this.userinfo = userinfo;
    }

    public BackCarMessage getBackCarMessage() {
        return backCarMessage;
    }

    public void setBackCarMessage(BackCarMessage backCarMessage) {
        this.backCarMessage = backCarMessage;
    }

    public BackEmployeeinfo getBackEmployeeinfo() {
        return backEmployeeinfo;
    }

    public void setBackEmployeeinfo(BackEmployeeinfo backEmployeeinfo) {
        this.backEmployeeinfo = backEmployeeinfo;
    }

    public BackExpenseorder getBackExpenseorder() {
        return backExpenseorder;
    }

    public void setBackExpenseorder(BackExpenseorder backExpenseorder) {
        this.backExpenseorder = backExpenseorder;
    }

    public AppStore getAppStore() {
        return appStore;
    }

    public void setAppStore(AppStore appStore) {
        this.appStore = appStore;
    }

    public AppExpensetype getAppExpensetype() {
        return appExpensetype;
    }

    public void setAppExpensetype(AppExpensetype appExpensetype) {
        this.appExpensetype = appExpensetype;
    }

    @Override
    public String toString() {
        return "BackCarRepair{" +
                "repairid='" + repairid + '\'' +
                ", telephone='" + telephone + '\'' +
                ", carcode='" + carcode + '\'' +
                ", reason='" + reason + '\'' +
                ", employeeid='" + employeeid + '\'' +
                ", createtime=" + createtime +
                ", updatetime=" + updatetime +
                ", school_id=" + schoolId +
                ", expenseorder='" + expenseorder + '\'' +
                ", isdelete=" + isdelete +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", userinfo=" + userinfo +
                ", backCarMessage=" + backCarMessage +
                ", backEmployeeinfo=" + backEmployeeinfo +
                ", backExpenseorder=" + backExpenseorder +
                ", appStore=" + appStore +
                ", appExpensetype=" + appExpensetype +
                '}';
    }


}
